package com.feifan.oa.domain;

import com.feifan.common.annotation.Excel;
import com.feifan.common.core.domain.BaseEntity;
import com.feifan.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 日程管理对象 tb_schedule
 * 
 * @author 非凡
 * @date 2020-07-22
 */
public class Schedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日程id */
    private Long id;

    /**
     * 定时任务Id
     */
    private Long jobId;

    /**
     * 用户ID
     */
    private SysUser sysUser;

    /** 日程名称 */
    @Excel(name = "日程名称")
    private String title;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date start;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date end;

    /** 是否为全天 */
    @Excel(name = "是否为全天")
    private Boolean allDay;

    /** 提前多少分钟提醒 */
    @Excel(name = "提前多少分钟提醒")
    private Integer advanceTime;

    /** 提醒方式 */
    @Excel(name = "提醒方式")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setStart(Date start) 
    {
        this.start = start;
    }

    public Date getStart() 
    {
        return start;
    }
    public void setEnd(Date end) 
    {
        this.end = end;
    }

    public Date getEnd() 
    {
        return end;
    }
    public void setAllDay(Boolean allDay)
    {
        this.allDay = allDay;
    }

    public Boolean getAllDay()
    {
        return allDay;
    }
    public void setAdvanceTime(Integer advanceTime)
    {
        this.advanceTime = advanceTime;
    }

    public Integer getAdvanceTime()
    {
        return advanceTime;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("sysUser", getSysUser())
            .append("title", getTitle())
            .append("start", getStart())
            .append("end", getEnd())
            .append("allDay", getAllDay())
            .append("advanceTime", getAdvanceTime())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
